﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="socialnexus.admin.Administrators.Edit"
    MasterPageFile="~/masters/Admin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">

<h1>Edit User Data</h1>

<div><asp:HiddenField runat="server" ID="hfUserId" /></div>

<div class="formLineItem">
    UserName<br />
    <asp:Label ID="lblUserName" runat="server" Text="Username" Font-Bold="true"  />
</div>

<div class="formLineItem">
    <asp:Label ID="lblFirstName" runat="server" Text="First Name" 
        AssociatedControlID="txtFirstName" />
    <asp:TextBox ID="txtFirstName" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtFirstName" runat="server"
        ErrorMessage="The First Name is required." Display="Dynamic" ValidationGroup="UserData" />
</div>

<div class="formLineItem">
    <asp:Label ID="lblLastName" runat="server" Text="Last Name"
        AssociatedControlID="txtLastName" />
    <asp:TextBox ID="txtLastName" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtLastName" runat="server"
        ErrorMessage="The Last Name is required." Display="Dynamic" ValidationGroup="UserData" />
</div>

<asp:Button runat="server" Text="Save Changes" ID="btnSave" OnClick="btnSave_Click" />

<h1>Password:</h1>

<asp:Label ID="lblPasswordError" runat="server" CssClass="error" Visible="false" EnableViewState="false" />

<div class="formLineItem">
    <asp:Label ID="lblPassword" runat="server" Text="Password"
        AssociatedControlID="txtPassword" />
    <asp:TextBox ID="txtPassword" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtPassword" runat="server"
        ErrorMessage="The password is required." Display="Dynamic" ValidationGroup="Password" />
</div>

<div class="formLineItem">
    <asp:Label ID="lblPasswordConfirm" runat="server" Text="Password Confirmation"
        AssociatedControlID="txtPasswordConfirm" />
    <asp:TextBox ID="txtPasswordConfirm" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="txtPasswordConfirm" runat="server"
        ErrorMessage="The password confirmation is required." Display="Dynamic" ValidationGroup="Password" />
    <asp:CustomValidator ID="CustomValidator2" ControlToValidate="txtPasswordConfirm" runat="server"
        OnServerValidate="ValidatePassword" Text="Passwords do not match." Display="Dynamic"
        ValidationGroup="Password" />
</div>
<asp:Button runat="server" Text="Change Password" ID="btnPasswordChange" 
    OnClick="btnPasswordChange_Click" />

<p><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/admin/Administrators/Default.aspx" 
    Text="&lt; Back to List" /></p>

</asp:Content>